home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-04-03 | 4.9 KB | 194 lines | [TEXT/CWIE] |
- // CWMacAppSwitches.h
- //
- // This file is included by "CWMacApp.pch.h" and similar files.
- //
- // MacApp 3.3+ and CW8 (CodeWarrior C/C++ PPC/68K 1.4) version.
- //
- //----------------------------------------------------------------------------------------
-
- // ========================================================
- // ••• BIG RED SWITCH FOR DEBUGGING •••
- // 0=nodebug, 1=debug (finer grain control can be found in CWMacAppSwitches.h)
- // ========================================================
- #if !defined(wantDebugging)
- #define wantDebugging 0
- #endif
-
- // The following flags are now being set by the file CWAutoSwitches.h
- // which is created and updated by the 'Build CW MA Libraries' script.
- // If you don't use the Build CW MA Libraries script and you want to
- // change the switches you can either change them directly in
- // CWAutoSwitches.h or you can undefine qAutoSwitches and then set
- // the switches in this file.
-
- #define qAutoSwitches 1
-
- #if defined(qAutoSwitches)
- #include "CWAutoSwitches.h"
- #else
-
- // ========================================================
- // System Software requirements
- // ========================================================
- #define qNeedsSystem7_5 0
-
-
- // ========================================================
- // MacApp 3.3 Features
- // ========================================================
- #define qAttachable 1
- #define qDrag 1
- #define qPowerTalk 1
- #define qOptimizeSelfSendAevt 1
-
-
- // ========================================================
- // MacApp 3.5 Features
- // ========================================================
- #define qContainer 0
- #define qGXPrinting 1
- #define qGXViews 0
-
-
-
- // ========================================================
- // Template views support
- // ========================================================
- #define qTemplateViews 1
- #define qWriteTemplateViews 0
-
-
- // ========================================================
- // Virtual user support
- // ========================================================
- #define qNeedsVU 0
-
-
- #endif // qAutoSwitches
-
- // ========================================================
- // Other system requirements
- // ========================================================
- #define qNeedsColorQD 1
-
-
- // ========================================================
- // Processor and code model requirements
- // ========================================================
- #define qPowerPC 0
- #if defined(__POWERPC__)
- #if __POWERPC__
- #undef qPowerPC
- #define qPowerPC 1
- #endif
- #endif
-
- #if defined(__CFM68K__)
- #if __CFM68K__
- #define qModelCFM 1
- #endif
- #endif
-
- //__MC68881__ and __MC68020__ are set in the processor pane
- #if defined(__MC68881__)
- #if __MC68881__
- // remember that you won't be able to run the resulting app on a PPC if you set this
- #define qNeedsFPU 1
- #endif
- #endif
-
- #if defined(__MC68020__)
- #if __MC68020__
- #define qNeedsMC68020 1
- #endif
- #endif
-
-
- // qModelFarCode isn't affected by precompiling
- #define qModelFarCode 1
-
- #if defined(MW_REZ)
- // set in Processor Panel
- #define qModelFarData __option(far_data)
- #else
- // Just guess!
- #define qModelFarData 0
- #endif
-
- // ========================================================
- // Detailed Debugging support
- // ========================================================
- // wantDebugging is sort of one stop shopping for debugging
- #if wantDebugging
-
- // Debug
- #define qDebug 1
-
- #if !defined(qAutoSwitches)
- #define qDebugMsg 1
- #define qSym 1
- #define qTheDebugger 1
- #define qInspector 1
- #define qRangeCheck 1
- #define qPerform 0
- //CW can use MPW's performance tools except when Jasik's debugger is
- //running under emulation. Try it with Macsbug, MW Debug, SourceBug,
- //or Jasik running on a 68K machine. (The same limitation applies
- //when Jasik is used with a CFront build.)
- #endif // qAutoSwitches
-
- #if defined(MW_REZ)
- #define qNames 1
- #else
- #define qNames (__option(macsbug) || __option(oldstyle_symbols))
- #endif
-
- #else
-
- // NoDebug
- #define qDebug 0
-
- #if defined(qAutoSwitches)
- #undef qDebugMsg
- #undef qSym
- #undef qTheDebugger
- #undef qPerform
- #undef qRangeCheck
- #undef qOptimizeSelfSendAevt
- #endif // qAutoSwitches
-
- #define qDebugMsg 0
-
- #if defined(MW_REZ)
- #define qNames 0
- #else
- #define qNames (__option(macsbug) || __option(oldstyle_symbols))
- #endif
-
- #define qSym 0
- #define qTheDebugger 0
- #define qInspector 0
- #define qPerform 0
- #define qRangeCheck 0
- #define qOptimizeSelfSendAevt 1
- #endif
-
- // MPW's performance tools can't work with a PPC build
- #if qPowerPC
- #undef qPerform
- #define qPerform 0
- #endif
-
-
- // ========================================================
- // NOW - Let MacApp setup the remaining conditional macros
- // ========================================================
- // Conditional Macros (include before any other headers)
- #if !defined(__MACONDITIONALMACROS__)
- #include "MAConditionalMacros.h"
- #endif
-
-
- //----------------------------------------------------------------------------------------
- // End of CWMacAppSwitches.h
-